

export default function FCComponent (props) {

  const showMsg = () => {
    alert('已关注'+ props.user)
  }

  const handleClick = () => {
    setTimeout(showMsg, 3000)
  }

  return (
    <div>
      <button onClick={handleClick}>函数式的关注</button>
    </div>
  )
}